package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.pojo.Indent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IndentMapper extends BaseMapper<Indent> {


    @Select("select * from indent as i left join user as u on i.indent_uid = u.id where i.indent_uid = #{uid}")
    List<Indent> IndentList(Integer uid);

    @Select("select * from  indent as i left join  user as u on i.indent_uid = u.id order by i.indent_time desc")
    List<Indent> selectIndentList();


    @Select("select * from  indent where id =#{id}")
    Indent selectIndentById(Integer id);
}
